qui(function (require, exports, module) {

    Ticket.Config = $.extend({}, {}, {
        TABLE_COLMODEL_CONFIG: {
            //oaDocNo
            id: {
                name: "id",
                index: 'id',
                title: false,
                width: 100,
                align: "center",
                sortable: false,
                hidden:true
            },
            oaDocNo: {
                name: "oaDocNo",
                index: 'oaDocNo',
                title: false,
                width: 150,
                align: "center",
                sortable: false
            },
            entityId: {
                name: "entityId",
                index: 'entityId',
                title: false,
                width: 100,
                sortable: false,
                align: "center"
            },
            dataType: {
                name: "dataType",
                index: 'dataType',
                title: false,
                width: 70,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return Ticket.Util.formatter.dataType(v, o, r);
                }
            },
            title: {
                name: "title",
                index: 'title',
                title: false,
                width: 200,
                sortable: false,
                align: "center"
            },
            reporter: {
                name: "reporter",
                index: 'reporter',
                title: false,
                width: 140,
                sortable: false,
                formatter: function (v, o, r) {
                    return Ticket.Util.formatter.reporter(v, o, r);
                }
            },
            executor: {
                name: "executor",
                index: 'executor',
                title: false,
                width: 140,
                sortable: false,
                formatter: function (v, o, r) {
                    return Ticket.Util.formatter.executor(v, o, r);
                }
            },
            oaDocEditorStatus: {
                name: "oaDocEditorStatus",
                index: 'oaDocEditorStatus',
                title: false,
                width: 135,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return Ticket.Util.formatter.oaDocEditorStatus(v, o, r);
                }
            },
            ticket_status: {
                name: "status",
                index: 'status',
                title: false,
                width: 80,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return Ticket.Util.formatter.ticket_status(v, o, r);
                }
            },
            operator_ticket_data: {
                name:"operator_ticket_data",
                title: false,
                width: 120,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return Ticket.Util.formatter.operator_ticket_data(v, o, r);
                }
            },
            ticket_detail:{
                name: "detail",
                index: 'detail',
                title: false,
                width: 300,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return Ticket.Util.formatter.detail(v, o, r);
                }
            },
            deadline:{
                name: "deadline",
                index: 'deadline',
                title: false,
                width: 135,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return Ticket.Util.formatter.deadline(v, o, r);
                }
            },
            log_id: {
                name: 'id',
                index: 'id',
                title: false,
                sortable: false,
                hidden: true
            },
            log_addTime:{
                name: 'addTime',
                index: 'addTime',
                sortable: false,
                title: false,
                width: 150,
                align: 'center',
                hidden:true
            },
            log_user: {
                name: 'user',
                index: 'user',
                sortable: false,
                title: false,
                width: 150
            },
            log_type: {
                name: 'type',
                index: 'type',
                sortable: false,
                title: false,
                width: 120,
                formatter: function (v, o, r) {
                    return Ticket.Util.formatter.log_type(v,o, r);
                }
            },
            log_descr: {
                name: "descr",
                index: 'descr',
                title: false,
                width: 450,
                sortable: false
            }
        },
        TICKET_DATA_LIST: {
            url: Ticket.urlConfig.getTicketDataListUrl,
            loadBeforeSend: function (xhr, settings) {
                var auth = Ancestor.Util.getAuth("/ticket/data/list");
                xhr.setRequestHeader('Sign', auth.sign);
                xhr.setRequestHeader("Time", auth.clientTime);
                xhr.setRequestHeader("From", auth.from);
                return true;
            },
            caption: "工单列表",
            multiselect: false,
            loadtext: '加载中...',
            loadui: 'block',
            rowNum: 10,
            mtype: "post",
            datatype: "local",
            prmNames: {
                page: "pageNo",
                rows: "pageSize"
            },
            colNames: ["工单号","oa单号", "项目类型", "主题",  "状态", "内容","发起人", "执行人", "OA审核状态", "剩余时间", "操作"],
            colModel: ['id',"oaDocNo", "dataType", "title",  "ticket_status","ticket_detail", "reporter" , "executor" , "oaDocEditorStatus" ,"deadline", "operator_ticket_data"],
            pager: "#pager"
        },

        TABLE_LOG: {
            url: Ticket.urlConfig.logUrl,
            loadBeforeSend: function (xhr, settings) {
                var auth = Ancestor.Util.getAuth("/ticket/logList");
                xhr.setRequestHeader('Sign', auth.sign);
                xhr.setRequestHeader("Time", auth.clientTime);
                xhr.setRequestHeader("From", auth.from);
                return true;
            },
            multiselect: false,
            loadtext: '加载中...',
            loadui: 'block',
            rowNum: 50,
            mtype: "post",
            datatype: "local",
            prmNames: {
                page: "pageNo",
                rows: "pageSize"
            },
            colNames: ["ID", "操作时间", "人员", "动作", "备注"],
            colModel: ['log_id', "log_addTime", "log_user" , "log_type" , "log_descr"],
            pager: "#log_pager"
        },

        CHECK_LIST_LEN:6,
        CODE_SUC :"A00000"

    });
});